# module add cplex/12.2
# setenv ILOG_LICENSE_FILE /sw/cplex/12.2/access.ilm
INCL   = -I/sw/cplex/12.3/linux/cplex/include/ \
	 -I/sw/local/include
LIBDIR = -L/sw/cplex/12.3/linux/cplex/lib/x86-64_sles10_4.1/static_pic/ \
	 -L/sw/cplex/12.3/linux/cplex/lib/ \
	 -L/local/lib

CCC    = g++
CFLAGS = -Wall -g

OBJ = main2.o problem.o network.o heuristik.o valid_cycles.o list_of_cuts2.o ConfigFile.o read_constrain_file.o

main: $(OBJ) 
	$(CCC) $(CFLAGS) $(INCL) -o main $(OBJ) $(LIBDIR) -lcplex -lm -lpthread

main2.o: main2.cpp ../problem.h ../network.h
	$(CCC) main2.cpp $(CFLAGS) $(INCL) -c

problem.o: ../problem.cpp ../problem.h ../network.h ../valid_cycles.h ../list_of_cuts2.h
	$(CCC) ../problem.cpp $(CFLAGS) $(INCL) -c  

read_constrain_file.o: ../read_constrain_file.cpp ../network.h
	$(CCC) ../read_constrain_file.cpp $(CFLAGS) $(INCL) -c 

network.o: ../network.cpp ../network.h
	$(CCC) ../network.cpp $(CFLAGS) $(INCL) -c 

heuristik.o: ../heuristik.cpp ../heuristik.h
	$(CCC) ../heuristik.cpp $(CFLAGS) $(INCL) -c

valid_cycles.o: ../valid_cycles.cpp ../valid_cycles.h ../list_of_cuts2.h
	$(CCC) ../valid_cycles.cpp $(CFLAGS) $(INCL) -c

list_of_cuts2.o: ../list_of_cuts2.cpp ../list_of_cuts2.h
	$(CCC) ../list_of_cuts2.cpp $(CFLAGS) $(INCL) -c

ConfigFile.o: ../ConfigFile.cpp ../ConfigFile.o
	$(CCC) ../ConfigFile.cpp ../ConfigFile.o $(CFLAGS) $(INCL) -c